<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>ShowCode</title>
    <style>
        .code {
            font-size: 600%;
            font-family: '等线';
            text-align: center;
            position: relative;
            top: 30%;
            color: #1E9FFF;
            letter-spacing: 15px;
        }

        .text {
            font-size: 130%;
            font-family: '等线';
            text-align: center;
            position: relative;
            top: 25%;
            color: #1E9FFF;
        }
    </style>
</head>
<body>
<p id="code" class="code"></p>
<p class="text">
    取件码是取件唯一凭证，请妥善保存！</p>
</body>
</html>
<script th:src="@{layui/layui.js}"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>
    function getCode(obj) {
        $("#code").text(obj)
        console.log(obj);
    }
</script>